<%#
# showmenu.rhtml
# 
# Created on 2007-10-8, 13:02:32
# 
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<div id="menu">
  <%  @menus.each do |m|
    if m[:open] %>
      <ul><li>
        <%    else %>
        </li><li>
        <%    end %>
        <%= link_to m[:title], wiki_url( :url => m[:url], :lang => m[:lang] ), \
          { :class => "menu_" + m[:indent].to_s + (m[:selected]?' menu_select':'') + ((m[:children_count] > 0)?' menu_chapter':' menu_item') } %>
          <%    m[:close].times do %>
        </li></ul>
      <%    end
    end %>
  </div>